<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
export default {
  name: "App",
  data() {
    return {};
  },
  created() {
    //禁止浏览器回退,只能回退一次
    window.onload = function() {
      history.pushState(null, null, document.URL);
      window.addEventListener("popstate", function() {
        history.pushState(null, null, document.URL);
      });
    };
  },
  methods: {}
};
</script>

<style>
#app {
}
</style>
